import request from '@/utils/request'

export function login(data) {
  return request({
    url: '?s=App.Movie_Login.login',
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url: '?s=App.Movie_Login.getUserInfo',
    method: 'post',
    token
  })
}

export function indexData() {
  return request({
    url: '?s=App.Movie_Login.index',
    method: 'get',
  })
}
export function logout() {
  return request({
    url: '?s=App.Movie_Login.loginOut',
    method: 'post'
  })
}
